#pragma once
#include "HalconCpp.h"

#include <QImage>

using namespace HalconCpp;


#include "opencv2/opencv.hpp"
using namespace  cv;

extern Mat himageToMat(HObject& imgHalcon);

extern HObject matToHImage( Mat& imgMat);

extern QImage hobjectToQImage(HObject& imgHalcon);


extern Mat drawRegion( Mat mat_image,HObject region, Scalar color);
extern Mat drawRegionFill( Mat mat_image, HObject region, Scalar color);

extern void rgb3_to_interleaved (HObject ho_ImageRGB, HObject *ho_ImageInterleaved);
